<?php
/**
 * Short Description  
 *
 * Long Description 
 *
 * @category   
 * @package    
 * @subpackage 
 * @copyright 
 * @author     Sandeep Manne<sandeep.manne@costrategix.com>
 */
class Core_Session_Validator_Client extends Zend_Session_Validator_Abstract
{
	
	public function setup()
    {
		$uniqueId = md5($_SERVER['HTTP_USER_AGENT'].
					    $_SERVER['HTTP_ACCEPT_ENCODING'].
					    $_SERVER['REMOTE_ADDR']);
		$this->setValidData($uniqueId);
    }
    
	public function validate()
    {
        $uniqueId = md5($_SERVER['HTTP_USER_AGENT'].
        			    $_SERVER['HTTP_ACCEPT_ENCODING'].
        			    $_SERVER['REMOTE_ADDR']);
        return $uniqueId == $this->getValidData();
    }
}